package itdep.domain.student;

import ga.hibernate.OrderedEnum;
import ga.i18n.Translatable;
import itdep.domain.CodedEntity;
import itdep.domain.TranslationType;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Collection;

/**
 * @author $Author: ikhalopik $
 * @version $Revision: 11 $   $Date: 2010-06-16 10:18:57 +0000 (Wed, 16 Jun 2010) $
 */
public enum EntranceType implements OrderedEnum, Translatable {
	COMPETITION(0, "competition"),
	OUT_OF_COMPETITION(1, "out-of-competition"),
	WITHOUT_EXAMINATION(2, "without-examination");

	private TranslationType translationType = TranslationType.STANDARD;
	private String type = "entrance-type";
	private int order;
	private String code;

	EntranceType(int order, String code) {
		this.order = order;
		this.code = code;
	}

	public int getOrder() {
		return order;
	}

	public String getTranslationType() {
		return type;
	}

	public String getTranslationCode() {
		return code;
	}

	public Collection<String> getTranslationVariants() {
		return translationType.getVariants();
	}
}